import { createApp } from 'vue'
import App from './App.vue'
import router from './router/index.js' //路由
import ElementPlus from "element-plus" //ElementPlus


// svg图标
import 'virtual:svg-icons-register'
import SvgIcon from '@/components/SvgIcon'
import elementIcons from '@/components/SvgIcon/svgicon'

import "element-plus/dist/index.css"
import './permission' //路由守卫
import store from '@/store/index'
import { computed } from 'vue'
import 'vue-demi'

const app= createApp(App)
.use(router)
.use(ElementPlus,{size:"large"})
.use(elementIcons)
.use(store)
.component('svg-icon',SvgIcon)

.mount('#app')



export default app